<div class="page-header"><h1>Edit user</h1></div>

<% form_for(user, {action: path_to.User(User), method: 'PUT', id: "user_form", class: 'form-horizontal'}, function (form) { %>
    <%- partial('users/form.ejs', {locals: {form: form, user: user}}) %>
    <div class="form-actions">
        <%- form.submit('<i class="icon-ok icon-white"></i> Update user', {class: 'btn btn-primary'}) %> or
        <%- link_to('Cancel', path_to.User(User), {class: 'btn'}) %>
    </div>
<% });%>